package com.xls.resource.dialog;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

import com.lzz.bottomencapsulation.popupwindow.CenterBaseDialog;
import com.xls.resource.R;

/***
 @package ${package}
 @filename ${filename}
 */
public class NetLoading extends CenterBaseDialog {

    TextView netloadingTvHint;

    String hint;

    public NetLoading(Activity context, String hint) {
        super(context);
        this.hint=hint;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setCancelable(false);
    }

    @Override
    protected int getView() {
        return R.layout.popu_loading;
    }

    @Override
    protected void initView() {
        netloadingTvHint=findViewById(R.id.netloading_tv_hint);
        netloadingTvHint.setText(hint);
    }

    public void setHint(String hint) {
        this.hint=hint;
    }
}
